﻿using System.Collections.Generic;
using CsvHelper.Configuration;
using Newtonsoft.Json;

namespace AIC_Notification
{
    public class StudentAdmissionResult
    {
        public string StudentID { get; set; }
        public string StudentName { get; set; }
        public string SchoolID { get; set; }
        public string SchoolName { get; set; }
        public string ApplicationType { get; set; }
        public string Category { get; set; }
        public string ApplicationResult { get; set; }
        public bool FinalSelection { get; set; }
        
        public StudentAdmissionResult()
        {
        }
    }

    public sealed class ResultMap : ClassMap<StudentAdmissionResult>
    {
        public ResultMap()
        {
            Map(m => m.StudentID).Index(0);
            Map(m => m.StudentName).Index(1);
            Map(m => m.SchoolID).Index(2);
            Map(m => m.SchoolName).Index(3);
            Map(m => m.ApplicationType).Index(4);
            Map(m => m.Category).Index(5);
            Map(m => m.ApplicationResult).Index(6);
            Map(m => m.FinalSelection).Index(7);
        }
    }
}
